package com.diudiutechnology.www.yadiudiu.yadiudiu.mine.MyActivity;

import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.diudiutechnology.www.yadiudiu.R;
import com.diudiutechnology.www.yadiudiu.util.utils.Utils;

import butterknife.Bind;
import butterknife.ButterKnife;

/**
 * Created by Administrator on 2017/8/24.\
 * 关于丫丢丢
 */

public class WithRegardActivity  extends Activity implements View.OnClickListener {
    @Bind(R.id.retur)
    LinearLayout retur;
    @Bind(R.id.pag)
    TextView pag;
    @Bind(R.id.suggestions_feedback_layout)//建议反馈
    RelativeLayout suggestions_feedback_layout;

    Context context;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_with_regard);
        ButterKnife.bind(this);
        context=this;
        initView();
    }

    private void initView() {
        retur.setOnClickListener(this);
        suggestions_feedback_layout.setOnClickListener(this);
        pag.setText("丫丢丢 "+ Utils.getVersion(context));
    }

    @Override
    public void onClick(View view) {
        switch (view.getId()) {
            case R.id.retur:
                finish();
                break;
            case R.id.suggestions_feedback_layout:
              startActivity(new Intent(context,SuggestionsFeedbackActivity.class));
                break;


        }
    }
}
